<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Create results</title>
</head>
<body>
<?php
	$con = GetConnection();
	$db = mysql_select_db("eCommerce",$con);
	$fn = $_POST['FirstName'];
	$ln = $_POST['LastName'];
	$pn = $_POST['PhoneNumber'];
	$pm = $_POST['Permissions'];
	$fn = mysql_real_escape_string($fn);
	$ln = mysql_real_escape_string($ln);
	$pn = mysql_real_escape_string($pn);
	$pm = mysql_real_escape_string($pm);
	$query = "INSERT INTO Users
			('".$fn."', '".$ln."', '".$pn."', '".$pm."')";
	$results = $db->query($query);
	if($results)
	{
		echo "It worked";
	}
	else
	{
		echo " Nope";
	}
	$con->close();
?>
</body>
</html>